package signGrammar.controller;

import signGrammar.expressions.packages.CLettersExpressionPackage;
import signGrammar.expressions.packages.CTestExpressionPackage;
import signGrammar.expressions.packages.IExpressionPackage;
import signGrammar.util.CMapBuilder;
import signGrammar.view.CViewMainFrame;

public class CSignGrammarApplication {
	public static void main(String[] args) {
		try {
			//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			new CControllerMainFrame(
				new CViewMainFrame(),
				new CMapBuilder<String,IExpressionPackage>()
					.put("test package", new CTestExpressionPackage())
					.put("p(a(ra*)|raga)", new CLettersExpressionPackage())
					.get()
			).startApp();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
